/**
 * Copyright(c) Yystar Technology Co.,Ltd
 * project：security
 * package：com.yystar.security.op.domain
 * fileName：User.java
 * date：2013-6-27
 */
package com.yystar.security.op.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.yystar.security.support.base.BaseDomain;

/**
 * @author Vistaa Peng
 * @date 2013-6-27
 * @todo TODO
 * @modify <BR>
 *         1.2013-6-27 Vistaa Peng Create file.
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "users", catalog = "test")
public class User extends BaseDomain {

	/**
	 * 
	 */
	@Id
	private int userId;
	private String userName;
	private String password;
	private int enabled;

	@Column(name = "userId", nullable=false)
	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Column(name = "userName", nullable = false)
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "password", nullable = false)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "enabled", nullable = false)
	public int getEnabled() {
		return enabled;
	}

	public void setEnabled(int enabled) {
		this.enabled = enabled;
	}

}
